package com.taplinker.client.im.protocol;

import com.taplinker.core.services.device.DeviceInfo;
import com.taplinker.core.services.location.Address;

/**
 * 访问请求
 * @author djbian
 *
 */
public class AccessRequest {

	private String appkey;				//key
		
	private DeviceInfo deviceInfo;		//设备的信息
	
	private Address locationInfo;		//本地信息
	
	public String getAppkey() {
		return appkey;
	}

	public void setAppkey(String appkey) {
		this.appkey = appkey;
	}

	public DeviceInfo getDeviceInfo() {
		return deviceInfo;
	}

	public void setDeviceInfo(DeviceInfo deviceInfo) {
		this.deviceInfo = deviceInfo;
	}

	public Address getLocationInfo() {
		return locationInfo;
	}

	public void setLocationInfo(Address locationInfo) {
		if (locationInfo==null) 
			locationInfo = new Address();
		this.locationInfo = locationInfo;
	}
}
